#ifndef _EXTERNS_H_
#define _EXTERNS_H_

#include "def.h"

extern char cmdline[MAXLINE + 1];   // 保存命令
extern char avgline[MAXLINE + 1];   // 保存参数

extern char* lineptr;
extern char* avptr;

extern char infile[MAXNAME + 1];
extern char outfile[MAXNAME + 1];

extern COMMAND cmd[PIPELINE];

extern int cmd_count;
extern int backnd;

#endif //MINISHELL_EXTERNS_H
